home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
ctutor.exe
/
SOURCE
/
COMBINE.C
< prev
next >
Wrap
C/C++ Source or Header
|
1994-05-15
|
403b
|
27 lines
/* Chapter 4 - Program 4 - COMBINE.C */
void main()
{
int a = 2;
float x = 17.1, y = 8.95, z;
char c;
c = (char)a + (char)x;
c = (char)(a + (int)x);
c = (char)(a + x);
c = a + x;
z = (float)((int)x * (int)y);
z = (float)((int)(x * y));
z = x * y;
}
/* Result of execution
(There is no output from this program)
*/